package com.szrt.oa.employee.entity;

import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 *  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `PHONE` varchar(255) DEFAULT NULL,
  `PASSWODE` varchar(255) DEFAULT NULL,
  `USERNAME` varchar(255) DEFAULT NULL,
  `SALARY` decimal(10,0) DEFAULT NULL,
  `BEGIN_DATE` datetime DEFAULT NULL,
  `DEPARMENT_ID` int(11) DEFAULT NULL,
 * @author My
 *
 */

@Scope("prototype")
@Table(name="oa_user_t")
@Component
public class EmployeeEntity {
	
	@Id
	private Integer id;
	private String phone;
	private String passwode;
	private String username;
	private Double salary;
	private String beginDate;
	private Integer deparmentId;
	
	
	

	@Override
	public String toString() {
		return "EmployeeEntity [id=" + id + ", phone=" + phone + ", passwode=" + passwode + ", username=" + username
				+ ", salary=" + salary + ", beginDate=" + beginDate + ", deparmentId=" + deparmentId
				+ ", departmentName=" + departmentName + "]";
	}


	//非数据库字段
	@Transient
	private String departmentName;
	
	//分页字段


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getPhone() {
		return phone;
	}


	public void setPhone(String phone) {
		this.phone = phone;
	}


	public String getPasswode() {
		return passwode;
	}


	public void setPasswode(String passwode) {
		this.passwode = passwode;
	}


	public String getUsername() {
		return username;
	}


	public void setUsername(String username) {
		this.username = username;
	}


	public Double getSalary() {
		return salary;
	}


	public void setSalary(Double salary) {
		this.salary = salary;
	}




	public String getBeginDate() {
		return beginDate;
	}


	public void setBeginDate(String beginDate) {
		this.beginDate = beginDate;
	}


	public Integer getDeparmentId() {
		return deparmentId;
	}


	public void setDeparmentId(Integer deparmentId) {
		this.deparmentId = deparmentId;
	}


	public String getDepartmentName() {
		return departmentName;
	}


	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}





	
	
	
	
}
